module.exports=function($routeProvider,$locationProvider) {
	//delete $httpProvider.defaults.headers.common["X-Requested-With"];
	
	$routeProvider.
	when('/', {
		templateUrl: 'templates/main.html',
		controller: 'MainController'
	}).otherwise({
		redirectTo: '/'
	});
	if(window.history && window.history.pushState){
		$locationProvider.html5Mode(true);
	}
};